package com.feishu.core.service.core;


import com.feishu.base.dto.entity.ExecutionTypeDO;
import com.feishu.base.work.WorkInterfaceType;
import com.feishu.base.work.WorkRoutineServer;
import com.feishu.core.service.entity.FeiShuTypeEnum;
import com.feishu.core.service.factory.out.OutputImplementationFactory;
import com.hustcad.plm.pdm.flowbusiness.model.entity.FlowObject;
import org.springframework.stereotype.Service;
import java.util.Map;

/**
 * 飞书普通消息
 */
@Service
@WorkInterfaceType(typeValue = "feishuProject",classificationValue = "ordinaryMessage")
public class OrdinaryMessageHandling implements WorkRoutineServer {
    public OrdinaryMessageHandling() {
    }

    @Override
    public Map<String,Object>  productionCall(ExecutionTypeDO executionType, String code, String name, FlowObject flowObject, Object parameter) throws Exception {
        Map<String,Object> outMap= OutputImplementationFactory.getOutDataToMap(executionType, FeiShuTypeEnum.OrdinaryMessage, code, name, flowObject, parameter);
        return outMap;
    }
}
